package com.ivan.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ivan.model.entity.hosp.Department;
import com.ivan.model.entity.hosp.Hospital;
import com.ivan.model.vo.hosp.HospitalQueryVo;

import java.util.List;
import java.util.Map;

/*
 * @Author      Ivan
 * @Date        2023/4/4 15:36
 * @Description
 */
public interface HospitalService {
    //医院列表(条件查询分页)
    Page<Hospital> selectHospPage(Integer page, Integer limit, HospitalQueryVo hospitalQueryVo);

    //更新医院上线状态
    void updateStatus(String id, Integer status);

    //根据医院的编号查询医院的详情
    Map<String, Object> getHospByHoscode(String hoscode);

    //通过医院名称查询信息
    List<Hospital> findByHosname(String hosname);

    //根据医院的编号查科室
    List<Department> findDepartment(String hoscode);
}
